/*
 * @author java_deng
 * @date 2024/12/4 11:55
 * @description
 */
package org.kaka.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.kaka.dto.LikeDto;

public interface LikeMapper extends BaseMapper<LikeDto> {

    LikeDto findByPostIdAndUserId(@Param("postId") Long postId,@Param("userId") Long userId);

    void deleteByPostIdAndUserId(@Param("postId") Long postId,@Param("userId") Long userId);
}
